module.exports = {
  plugins: {
    autoprefixer: {
      overrideBrowserslist: [
        "Android 4.1",
        "iOS 7.1",
        "Chrome > 31",
        "ff > 31",
        "ie >= 8"
      ],
      grid: true
    },
    "postcss-pxtorem": {
      rootValue: 16,
      propList: ["*"],
      selectorBlackList: [/^html$/, /^body$/],
      replace: true,
      // exclude: /node_modules/,
      exclude: (e) => {
        if (/(src(\\|\/)views(\\|\/)dashboard)|(node_modules(\\|\/)@jiaminghi(\\|\/)data-view)/.test(e)) {
          return true;
        }
        return false;
      },
      minPixelValue: 2
    }
  }
};
